import request from "@/utils/requestJava.js"

export default {
	/**
	 * 获取客户
	 * @param {Object} data
	 */
	async listCustomer(data) {
		return await request({
			url: "/api/customer/orderCustomerList",
			data: data,
			method: 'POST',
			contentType: 2,
			channel: 2
		})
	},
	
	/**
	 * 客户列表
	 * @param {Object} data
	 */
	async getCustomerList(data) {
		return await request({
			url: "/api/customer/orderCustomerListNew",
			data: data,
			method: 'POST',
			contentType: 2,
			channel: 2
		})
	},	
	
	/**
	 * 删除客户信息
	 * @param {Object} data
	 */
	async delete(data) {
		return await request({
			url: "/api/customer/customerDelete",
			data: data,
			method: 'POST',
			contentType: 2,
			channel: 2
		})
	},
	
	async deleteCustomerAddress(data){
		return await request({
			url:"/api/customer/deleteAddress",
			data: data,
			method:'POST',
			contentType:2,
			channel: 2
		})
	}
	
	
	
}